package com.lxj.stream;

import java.io.File;
import java.io.FileWriter;

/**
 * TestStream3
 */
public class TestStream3 {

    public static void main(String[] args) {
        File f = new File("f:/xyz/abc/def/lol2.txt");
        try(FileWriter fr = new FileWriter(f)) {
            String data = "abcdefghijklmnopqrstuvwsyz";
            char[] cs = data.toCharArray();
            fr.write(cs);
        } catch (Exception e) {
            e.printStackTrace();
            //TODO: handle exception
        }

    }
}